home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
soccer_skill.swf
/
scripts
/
DefineButton2_65
/
BUTTONCONDACTION on(press, release).as
Wrap
Text File
|
2010-11-09
|
831b
|
36 lines
on(press, release){
tellTarget("../resplandor")
{
play();
}
if(eval("../../:y") < 190)
{
tellTarget("_root.diego")
{
gotoAndStop("roda");
play();
}
}
else
{
tellTarget("_root.diego")
{
gotoAndPlay(1);
}
}
set("../../:puntos",eval("../../:puntos") + 1);
dragx = getProperty("../../drag", _X);
pelotax = eval("../../:x");
if(pelotax < dragx)
{
set("../../:vx",30 * eval("../../:elastic") * 1.5);
}
else
{
set("../../:vx",-30 * eval("../../:elastic") * 1.5);
}
set("../../:vy",-150 * eval("../../:elastic") * 1.5);
set("../../:vx",- (eval("../../:vx") * eval("../../:elastic") - 1.5));
set("../../:vy",eval("../../:vy") * eval("../../:elastic") * 1.5);
}